package com.ruoyi.afmodule.service;

import org.openoa.base.mapper.RoleMapper;
import org.openoa.base.service.AfRoleService;
import org.openoa.base.vo.BaseIdTranStruVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.Collection;
import java.util.List;
@Primary
@Service
public class RuoYiRoleServiceImpl implements AfRoleService {
    @Autowired
    private RoleMapper rolesMapper;
    @Override
    public List<BaseIdTranStruVo> queryRoleByIds(Collection<String> roleIds) {
        System.out.println("55555========= queryUserByRoleIds called");
        return rolesMapper.queryRoleByIds(roleIds);
    }
    @Override
    public List<BaseIdTranStruVo> queryUserByRoleIds(Collection<String> roleIds) {
        System.out.println("6666========= queryUserByRoleIds called");
        return rolesMapper.queryUserByRoleIds(roleIds);
    }
}